package org.vnl.platform.orm;

/**
 * 查詢指令
 * 
 * @author Vaughan
 *
 */
public class QueryCommand extends Command {

    /**
     * 
     */
    private static final long serialVersionUID = -3316399550745120682L;

    private String nativeSQL;
    
    private Object key;
    
    private Class<? extends Object> resultClass;

    public QueryCommand() {
        super();
    }

    public QueryCommand(String name) {
        super(name);
    }

    public String getNativeSQL() {
        return nativeSQL;
    }

    public void setNativeSQL(String nativeSQL) {
        this.nativeSQL = nativeSQL;
    }

    public Class<? extends Object> getResultClass() {
        return resultClass;
    }

    public void setResultClass(Class<? extends Object> resultClass) {
        this.resultClass = resultClass;
    }

    public Object getKey() {
        return key;
    }

    public void setKey(Object key) {
        this.key = key;
    }
    
}
